package com.topvision.common.token;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.jsonwebtoken.Claims;

/**
 * @author shengwm
 * @version V0.0.1
 * @Title: AccessToken
 * @Package com.seed.security.auth.jwt
 * @Description: TODO
 * @date 2017/6/16
 */
public class AccessToken {
    /**
     * 生成的JWT
     */
    private final String rawToken;
    /**
     * 加密内容
     */
    @JsonIgnore
    private Claims claims;

    public AccessToken(final String token, Claims claims) {
        this.rawToken = token;
        this.claims = claims;
    }

    public String getToken() {
        return this.rawToken;
    }

    public Claims getClaims() {
        return claims;
    }
}
